package service

import "cronjob_work/internal/model/entity"

type INotifyTpl interface {
	NotifyTplGetById(id int) (*entity.PpNotifyTpl, error)
	NotifyTplGetByTplType(tplType int, typestr string) (*entity.PpNotifyTpl, error)
}

var localNotifyTpl INotifyTpl

func NotifyTpl() INotifyTpl {
	if localNotifyTpl == nil {
		panic("implement not found for interface INotifyTpl, forgot register?")
	}

	return localNotifyTpl
}

func RegisterNotifyTpl(i INotifyTpl) {
	localNotifyTpl = i
}
